<?php
include 'config.php';
include 'sys/db.class.php';
$x = DB::connect($dbconfig['host'],$dbconfig['user'],$dbconfig['pwd'],$dbconfig['dbname'],$dbconfig['port']);
if (!$x) {
	die(base64_decode('PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0idXRmLTgiPjx0aXRsZT7or7fms6jmhI/vvIE0MDQ8L3RpdGxlPjwvaGVhZD48c3R5bGU+LmJveCB7Y29sb3I6ICNmMjQ7YmFja2dyb3VuZC1jb2xvcjogI2ZmZjtwYWRkaW5nLXRvcDogMzBweDt9PC9zdHlsZT48Ym9keSBzdHlsZT0iYmFja2dyb3VuZC1pbWFnZTogdXJsKCdhc3NldHMvaW1nL2JnLmpwZycpO3BhZGRpbmctdG9wOiAzMHB4OyI+PGRpdiBjbGFzcz0iYm94Ij48Y2VudGVyPjxoMj7mlbDmja7lupPov57mjqXlpLHotKXvvIHor7fms6jmhI/mlbDmja7lupPphY3nva7vvIE8L2gyPjwvY2VudGVyPmJ55rGh5qmYPGJyPjwvZGl2PjwvYm9keT48L2h0bWw+'));
}
$data = DB::get_row("SELECT title,seo,foot FROM love_config WHERE Id = 1");
include 'views/head.php';
if (isset($_GET['s'])) {
	switch ($_GET['s']) {
		case 'search':
			include 'views/search.php';
			break;
		case 'add':
			include 'views/add.php';
			break;
		default:
			include 'views/main.php';
			break;
	}
}else{
		include 'views/main.php';
}
if(isset($_GET['id'])) {
	include 'views/see.php';
}